package com.atguigu.szdz.dcsyl.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.atguigu.szdz.dcsyl.common.utils.LocalDateConverter;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class YxDataEntity implements Serializable {
    private static final long serialVersionUID = 1L;

//    @ExcelProperty("井名")
    @ExcelProperty(value = "井名", index = 0)
    private String wellName;

    @ExcelProperty(value = "深度", index = 1)
    private Double depth;

    @ExcelProperty(value = "顶深", index = 2)
    private Double topDepth;

    @ExcelProperty(value = "底深", index = 3)
    private Double bottomDepth;

    @ExcelProperty(value = "样品编号", index = 4)
    private Integer sno;

    @ExcelProperty(value = "样品类型", index = 5)
    private String sampleType;

    @ExcelProperty(value = "层位", index = 6)
    private String strata;

    @ExcelProperty(value = "岩性", index = 7)
    private String lithId;

    @ExcelProperty(value = "气态烃量", index = 8)
    private Double s0;

    @ExcelProperty(value = "液态烃量", index = 9)
    private Double s1;

    @ExcelProperty(value = "裂解烃量", index = 10)
    private Double s2;

    @ExcelProperty(value = "S2的峰顶温度", index = 11)
    private Double tMax;

    @ExcelProperty(value = "残余碳", index = 12)
    private Double s4;

    @ExcelProperty(value = "生烃潜量或含油气总量", index = 13)
    private Double pg;

    @ExcelProperty(value = "气产率指数", index = 14)
    private Double gpi;

    @ExcelProperty(value = "油产率指数", index = 15)
    private Double opi;

    @ExcelProperty(value = "油气总产率指数", index = 16)
    private Double tpi;

    @ExcelProperty(value = "总有机碳", index = 17)
    private Double toc;

    @ExcelProperty(value = "降解潜力", index = 18)
    private Double d;

    @ExcelProperty(value = "烃指数", index = 19)
    private Double hi;

    @ExcelProperty(value = "分析日期", index = 20,converter = LocalDateConverter.class)
    @DateTimeFormat("yyyy-MM-dd")
    private LocalDate theDate;

    @ExcelProperty(value = "分析人", index = 21)
    private String analyseUser;

    @ExcelProperty(value = "审核人", index = 22)
    private String additUser;

    @ExcelProperty(value = "备注", index = 23)
    private String remark;

    @Override
    public String toString() {
        return "FcDataEntity{" +
                "wellName='" + wellName + '\'' +
                ", depth=" + depth +
                ", topDepth=" + topDepth +
                ", bottomDepth=" + bottomDepth +
                ", sno=" + sno +
                ", sampleType='" + sampleType + '\'' +
                ", strata='" + strata + '\'' +
                ", lithId='" + lithId + '\'' +
                ", s0=" + s0 +
                ", s1=" + s1 +
                ", s2=" + s2 +
                ", tMax=" + tMax +
                ", s4=" + s4 +
                ", pg=" + pg +
                ", gpi=" + gpi +
                ", opi=" + opi +
                ", tpi=" + tpi +
                ", toc=" + toc +
                ", d=" + d +
                ", hi=" + hi +
                ", theDate=" + theDate +
                ", analyseUser='" + analyseUser + '\'' +
                ", additUser='" + additUser + '\'' +
                ", remark='" + remark + '\'' +
                '}'+"\n";
    }
}
